import { createRouter, createWebHistory, createWebHashHistory } from "vue-router";

const ScreenPage =  () => import('@/views/ScreenPage')

const routes = [
    {
        path:'',
        redirect:'/screenPage'//页面默认路径,也可用于重定向
    },
    {
        path: '/screenPage',
        component:ScreenPage
    }

]

// 导出路由
const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router